restore

Configuration for Restore resource.

Read/write properties

required_ns<Integer>

Total number of instances present in backup file..

backup_file_name<String>

Backup file name.
Maximum length = 64

restore_type<Integer>

.

ip_address_list<String[]>

List of VM IP Address.
Minimum length = 1
Maximum length = 1024

sbi_file<String>

SDX Image selected by User for Restore.

required_throughput<Double>

Throughput required by the backedup instances to get restored..

max_allowed_ns<Integer>

Number of NetScaler instances current license allows to be restored..

backup_components<backup_component[]>

Backup Components.

max_allowed_throughput<Double>

Maximum throughput current license allows..

is_valid_license<Boolean>

To indicate if available license is valid and (NS+throughput) sufficient for restore..

backup_password<String>

Password of encrypted backup file.

Read only properties

premium_throughput<Double>

Throughput from backup under premium license..

max_allowed_standard_throughput<Double>

Maximum allowed throughput under existing standard license..

advanced_throughput<Double>

Throughput from backup under advanced license..

is_pooled_license<Boolean>

Flag to indicate that current SDX is operating in pooled license.

act_id<String>

Activity Id.

max_allowed_advanced_throughput<Double>

Maximum allowed throughput under existing advanced license..

standard_throughput<Double>

Throughput from backup under standard license..

max_allowed_premium_throughput<Double>

Maximum allowed throughput under existing premium license..

Operations

NOTE: In request payload, Mandatory parameters are marked red and bold.

The following parameters can be used in the nitro request :

onerror   <String_value>

Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE

addget (all)

add

URL:https://<MGMT-IP>/nitro/v2/config/restore?onerror=<String_value>

HTTPS Method:POST

Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Request Payload:JSON

{"restore": {
      "ip_address_list":<String_value[]>,
      "is_valid_license":<Boolean_value>,
      "restore_type":<Integer_value>,
      "backup_file_name":<String_value>,
      "max_allowed_ns":<Integer_value>,
      "required_throughput":<Double_value>,
      "backup_components":[{
      "component_version_bit":<String_value>,
      "backup_file_name":<String_value>,
      "component_minimum_version":<String_value>,
      "component_name":<String_value>,
      "component_versions":<String_value>,
      "component":<String_value>,
      "component_message":<String_value>,
      "component_error_severity":<Integer_value>,
      "component_hostname":<String_value>,
      "component_ip":<String_value>}]
,
      "required_ns":<Integer_value>,
      "sbi_file":<String_value>,
      "max_allowed_throughput":<Double_value>,
      "backup_password":<String_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "restore":[{
      "required_ns":<Integer_value>,
      "premium_throughput":<Double_value>,
      "max_allowed_standard_throughput":<Double_value>,
      "advanced_throughput":<Double_value>,
      "is_pooled_license":<Boolean_value>,
      "backup_file_name":<String_value>,
      "restore_type":<Integer_value>,
      "act_id":<String_value>,
      "max_allowed_advanced_throughput":<Double_value>,
      "standard_throughput":<Double_value>,
      "max_allowed_premium_throughput":<Double_value>,
      "ip_address_list":<String_value>,
      "sbi_file":<String_value>,
      "required_throughput":<Double_value>,
      "max_allowed_ns":<Integer_value>,
      "backup_components":[{
      "component_versions":<String_value>,
      "backup_file_name":<String_value>,
      "component_ip":<String_value>,
      "component_name":<String_value>,
      "component_error_severity":<Integer_value>,
      "component_message":<String_value>,
      "component_hostname":<String_value>,
      "component_minimum_version":<String_value>,
      "component_version_bit":<String_value>,
      "component":<String_value>}],
      "max_allowed_throughput":<Double_value>,
      "is_valid_license":<Boolean_value>,
      "backup_password":<String_value>}]}

get (all)

URL:https://<MGMT-IP>/nitro/v2/config/restore

Query-parameters:

filter

https://<MGMT-IP>/nitro/v2/config/restore?filter=property-name1:property-value1,property-name2:property-value2

Use this query-parameter to get the filtered set of restore resources configured on the system. You can set a filter on any property of the resource.

pagesize=#no&pageno=#no

https://<MGMT-IP>/nitro/v2/config/restore?pagesize=#no&pageno=#no

Use this query-parameter to get the restore resources in chunks.

count

https://<MGMT-IP>/nitro/v2/config/restore?count=yes

Use this query-parameter to get the count of restore resources.

HTTPS Method:GET

Request Headers:

Accept:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Headers:

Content-Type:application/json

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "restore":[{
      "required_ns":<Integer_value>,
      "premium_throughput":<Double_value>,
      "max_allowed_standard_throughput":<Double_value>,
      "advanced_throughput":<Double_value>,
      "is_pooled_license":<Boolean_value>,
      "backup_file_name":<String_value>,
      "restore_type":<Integer_value>,
      "act_id":<String_value>,
      "max_allowed_advanced_throughput":<Double_value>,
      "standard_throughput":<Double_value>,
      "max_allowed_premium_throughput":<Double_value>,
      "ip_address_list":<String_value>,
      "sbi_file":<String_value>,
      "required_throughput":<Double_value>,
      "max_allowed_ns":<Integer_value>,
      "backup_components":[{
      "component_versions":<String_value>,
      "backup_file_name":<String_value>,
      "component_ip":<String_value>,
      "component_name":<String_value>,
      "component_error_severity":<Integer_value>,
      "component_message":<String_value>,
      "component_hostname":<String_value>,
      "component_minimum_version":<String_value>,
      "component_version_bit":<String_value>,
      "component":<String_value>}],
      "max_allowed_throughput":<Double_value>,
      "is_valid_license":<Boolean_value>,
      "backup_password":<String_value>}]}